//
//  HelloWordAppDelegate.m
//  HelloWord
//
//  Created by David Zou on 09-1-1.
//  Copyright China Post 2009. All rights reserved.
//

#import "HelloWordAppDelegate.h"
#import "DetailViewController.h"



@implementation HelloWordAppDelegate

@synthesize window;
@synthesize tabBarController;
@synthesize aDetailViewController;
@synthesize navController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {
/*    
    // Add the tab bar controller's current view as a subview of the window
	tabBarController = [[UITabBarController alloc] init];

 FirstViewController *aFirstController = [[[FirstViewController alloc] initWithNibName:@"FirstView" bundle:nil] autorelease];
	SecondViewController *aSecondController = [[[SecondViewController alloc] initWithNibName:@"SecondView" bundle:nil]autorelease];
	
	tabBarController.viewControllers = [NSArray arrayWithObjects:aFirstController,aSecondController,nil];

//	[window setBackgroundColor:[UIColor blackColor]];
*/	

	
    [window addSubview:tabBarController.view];
}

- (void)showDetail:(NSDictionary *)detail
{
	 
}

/*
// Optional UITabBarControllerDelegate method
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
}
*/

/*
// Optional UITabBarControllerDelegate method
- (void)tabBarController:(UITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray *)viewControllers changed:(BOOL)changed {
}
*/


- (void)dealloc {

    [tabBarController release];
    [window release];
    [super dealloc];
}

@end

